﻿using System;
using System.Collections.Generic;
using System.Text;

namespace StandardDAC {
    /// <summary>
    /// Class that has an integer identifier and a method to indicate whether it needs to be created/updated.
    /// </summary>
    public interface IDataModel  {
        /// <summary>
        /// Database Identifier
        /// </summary>
        int Id { get; set; }
        /// <summary>
        /// Returns flag indicating whether it is a new item, or if it's already in the database
        /// </summary>
        /// <returns></returns>
        bool IsNew();
    }
}
